<?php

namespace App\Models\Entity;

use Swoft\Db\Model;
use Swoft\Db\Bean\Annotation\Column;
use Swoft\Db\Bean\Annotation\Entity;
use Swoft\Db\Bean\Annotation\Id;
use Swoft\Db\Bean\Annotation\Required;
use Swoft\Db\Bean\Annotation\Table;

/**
 * 充值黑名单

 * @Entity()
 * @Table(name="s_blackno")
 * @uses      SBlackno
 * @version   2018年07月04日
 */
class SBlackno extends Model
{
    /**
     * @var int $id 
     * @Id()
     * @Column(name="id", type="integer")
     */
    private $id;

    /**
     * @var string $account 
     * @Column(name="account", type="string", length=30)
     * @Required()
     */
    private $account;

    /**
     * @var string $createdat 
     * @Column(name="createdat", type="datetime", default="CURRENT_TIMESTAMP")
     */
    private $createdat;

    /**
     * @param int $value
     * @return $this
     */
    public function setId(int $value)
    {
        $this->id = $value;

        return $this;
    }

    /**
     * @param string $value
     * @return $this
     */
    public function setAccount(string $value): self
    {
        $this->account = $value;

        return $this;
    }

    /**
     * @param string $value
     * @return $this
     */
    public function setCreatedat(string $value): self
    {
        $this->createdat = $value;

        return $this;
    }

    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @return mixed
     */
    public function getAccount()
    {
        return $this->account;
    }

    /**
     * @return string
     */
    public function getCreatedat()
    {
        return $this->createdat;
    }

}
